//
//  HLTitleHeaderModel.m
//  s.
//
//  Created by fanshijian on 2022/8/26.
//  Copyright © 2022 J. All rights reserved.
//

#import "BETitleHeaderModel.h"

@implementation BETitleHeaderModel

- (instancetype)init{
    if (self = [super init]) {
        self.textAlignment = NSTextAlignmentLeft;
        [super prepareLayout:kSize(kScreenWidth, 25)];
    }
    return self;
}

- (NSString *)idf{
    if (self.idfBlock) return self.idfBlock();
    return @"BETitleHeaderReusableView";
}

+ (BETitleHeaderModel *)cT:(id)t left:(CGFloat)left top:(CGFloat)top h:(CGFloat)h {
    return [self cT:t tf:nil tc:nil left:left top:top h:h];
}

+ (BETitleHeaderModel *)cT:(id)t tf:(UIFont *)tf tc:(NSString *)tc left:(CGFloat)left top:(CGFloat)top h:(CGFloat)h {
    BETitleHeaderModel *model = [[self class] new];
    model.title = t;
    model.tf = tf;
    model.tColor = tc;
    model.leftOffset = left;
    model.topOffset = top;
    model.layout.itemSize = kSize(kScreenWidth, h);
    return model;
}


@end
